Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: points for setting bomb mod?

  1. #11

    Default

    also didnt work, weird mohaa server i have

  2. #12

    Default

    My server does that, here's my ft.scr, you'll probably want to run it through winmerge to see the differences between mine and yours just to make sure I don't have anything weird in there specific to my server (no sound, no beam, bigger melt radius etc...)

    ft.rar

    (lol @ not being able to upload .scr file, here's a .rar).

  3. #13

    Default

    cool tks will dig it out as soon i have time

    is it also editable that u get 5 points for setting a bomb and 3 for defusing?

    edit:::::: oke i used winmerge, and couldnt find stuff that i didnt have, only some stuff for showing your meltpoints, but nothing for showing names....

    this is my code for meltpoints

    Code:
    award_melter_points local.melters:
        if (level.mef_baseversion == "sh" || level.mef_baseversion == "bt" || level.mef_baseversion == "aa")
        {
            for (local.i = 0; local.i < local.melters.size; local.i++)
            {
                local.melter = local.melters[local.i]
                if (local.melter != NULL)
                {
                    if (local.melter.ft_meltscore == NIL)
                    {
                        local.melter.ft_meltscore = 0.0
                        local.melter.ft_awardedpoints = 0
                    }
    
                    local.melter.ft_meltscore += (1.0 / local.melters.size)
                    local.totalpoints = int local.melter.ft_meltscore
    
                    // round up to the nearest integer
                    if ((local.melter.ft_meltscore - local.totalpoints) > 0.0)
                    {
                        local.totalpoints += 1
                    }
    
                    local.award = local.totalpoints - local.melter.ft_awardedpoints
                    if (local.award > 0)
                    {
                        if(level.mef_baseversion == "aa")
                        {
                            /// AA way with Reborn to add kills 
                            local.melter addkills local.award
                        }
                        else
                        {
                        /// SH or BT way to add kills
                        local.melter commanddelay 0 addKills local.award
                        }
                        
                        local.melter.ft_awardedpoints += local.award
                    }
                }
            }
        }
    end
    this is zappa's

    Code:
    award_melter_points local.melters:
    	if (level.mef_baseversion == "sh" || level.mef_baseversion == "bt" || level.mef_baseversion == "aa")
    	{
    		for (local.i = 0; local.i < local.melters.size; local.i++)
    		{
    			local.melter = local.melters[local.i]
    			if (local.melter != NULL)
    			{
    				if (local.melter.ft_meltscore == NIL)
    				{
    					local.melter.ft_meltscore = 0.0
    					local.melter.ft_awardedpoints = 0
    				}
    
    				local.melter.ft_meltscore += (1.0 / local.melters.size)
    				local.totalpoints = int local.melter.ft_meltscore
    
    				// round up to the nearest integer
    				if ((local.melter.ft_meltscore - local.totalpoints) > 0.0)
    				{
    					local.totalpoints += 1
    				}
    
    				local.award = local.totalpoints - local.melter.ft_awardedpoints
    				if (local.award > 0)
    				{
    					local.melter commanddelay 0 addKills local.award
    					local.melter.ft_awardedpoints += local.award
    					local.melter iprint "You added melt points"
    					local.melter iprint ("Your Melts This Round: " + local.melter.ft_awardedpoints) 1
    					//local.melter stufftext ("locationprint 500 250 Your-Melts-This-Round:" + local.melter.ft_awardedpoints)
    
    
    					if(local.melter.dmteam == "allies") {
    
    					level.teamin = 2
    					level.alliesmelt++
    										}
    
    					if(local.melter.dmteam == "axis") {
    
    					level.teamin = 1
    					level.axismelt++
    										}
    				}
    			}
    		}
    	}
    end
    
    										}
    my game crashes as soon as i melt someone, so maybe its an linux issue.

    in the past i added meltpoint ot my windows server.... than changed to a linux server and copied and paste all the mods from windows into my linux server.... and they all crashed, than someone had to change the meltpoints code to work with linux

    and maybe a reason why the names dont show, becease some windows to linux buggs
    also when i use zappas ft.scr my server crahses at freezing.ft.rar
    there is my ft.scr
    Last edited by Slimbips {sfx}; July 20th, 2017 at 07:27 AM.

  4. #14

    Default

    points for setting bomb mod?
    LOL SLIMBIPS after all this time you are still asking help for every line of code!?!?!?

    Like you mentioned to many newbie on these forums when they asked for help .... "GOOGLE IT"

  5. #15

    Default

    i have other things to do pac
    Last edited by Slimbips {sfx}; July 24th, 2017 at 02:55 PM.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •